<!-- addEditFlow.html 2017-08-11 16:58:55-->
#@HplusLayout()
#define content()
<div style="padding:10px;height: 100%">
	<form method="post" class="form-horizontal required-validate" action="doEditPassword" novalidate="novalidate" onsubmit="return validateCallback(this,thisAjaxDone)">
		<div class="form-group">
			<label class="col-xs-3 control-label">原密码：</label>
			<div class="col-xs-8">
				<input type="password" class="form-control required" name="olderpassword"/>
			</div>
		</div>
		<div class="form-group">
			<label class="col-xs-3 control-label">新密码：</label>
			<div class="col-xs-8">
				<input type="password" class="form-control required" name="newpassword"/>
			</div>
		</div>
		<div class="form-group">
			<label class="col-xs-3 control-label">确认新密码：</label>
			<div class="col-xs-8">
				<input type="password" class="form-control required" name="repassword"/>
			</div>
		</div>
		<div class="form-group">
			<div class="col-xs-8 col-xs-offset-3">
				<button type="submit" class="btn btn-primary">保存</button>
			</div>
		</div>
	</form>
</div>
#end
#define js()
<script src="#(res_path)/hplus/js/plugins/validate/jquery.validate.min.js"></script>
<script src="#(res_path)/hplus/js/plugins/validate/messages_zh.min.js"></script>
<script src="#(res_path)/hplus/js/plugins/laydate/laydate.js"></script>
#end
#define jsFunction()
<script>
	function thisAjaxDone(data){
		if(data.result=="success"){
			layer.alert("修改成功",{icon:1},function(){
				location.reload();
			})
		}else {
			layer.alert(data.message,{icon:2})
		}
	}
</script>
#end